//
//  BPMainViewController.m
//  BabyPhotograph
//
//  Created by cesh on 2017/1/3.
//  Copyright © 2017年 cesh. All rights reserved.
//

#import "BPMainViewController.h"
#import "CSLeftSlideControllerOne.h"
#import "CSLeftSlideControllerTwo.h"

@interface BPMainViewController ()

@end

@implementation BPMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    //创建主界面
    UIStoryboard *Storyboard1 = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    UIViewController *mainVC = Storyboard1.instantiateInitialViewController;
    UINavigationController *mainNav = [[UINavigationController alloc] initWithRootViewController:mainVC];
    //创建左界面
    UIStoryboard *Storyboard2 = [UIStoryboard storyboardWithName:@"Left" bundle:nil];
    UIViewController *leftVC = Storyboard2.instantiateInitialViewController;
    
    
    //初始化CSLeftSlideControllerOne
    CSLeftSlideControllerOne *LeftSlideController = [[CSLeftSlideControllerOne alloc] initWithLeftViewController:leftVC MainViewController:mainNav];
    [self addChildViewController:LeftSlideController];
    [self.view addSubview:LeftSlideController.view];
    
    
    //初始化CSLeftSlideControllerTwo
    //    CSLeftSlideControllerTwo *LeftSlideController = [[CSLeftSlideControllerTwo alloc] initWithLeftViewController:leftVC MainViewController:mainNav];
    //    [self addChildViewController:LeftSlideController];
    //    [self.view addSubview:LeftSlideController.view];
}

- (UIStatusBarStyle)preferredStatusBarStyle {
    return UIStatusBarStyleLightContent;
}

@end
